import { Module } from "@nestjs/common";
import { MulterModule } from "@nestjs/platform-express";

import { multerModuleRegisterConfig } from "@/core/file/multer-module.config";

import { FileAdminController } from "./controller/file.admin.controller";
import { FileDirAdminController } from "./controller/file-dir.admin.controller";
import { StorageController } from "./controller/storage.controller";
import { FileService } from "./service/file.service";
import { FileDirService } from "./service/file-dir.service";

@Module({
    controllers: [FileAdminController, FileDirAdminController, StorageController],
    providers: [FileService, FileDirService],
    imports: [MulterModule.registerAsync(multerModuleRegisterConfig)]
})
export class FileModule {}
